package com.yc.chatroom.common.dto;

import java.io.Serializable;
import javax.validation.constraints.NotBlank;

/**
 * 登录时传的数据
 * @author yuancan
 *
 */
public class LoginDto extends BaseDto implements Serializable {

	@NotBlank(message = "账号不能为空")
	private String account;//账号
	
	@NotBlank(message = "密码不能为空")
	private String password;//密码
	
	@NotBlank(message = "功能编码不能为空")
	private Integer functionCode;//功能编码
	
	public LoginDto() {
		super();
		// TODO Auto-generated constructor stub
	}
	
	public LoginDto(String account, String password, Integer functionCode) {
		super();
		this.account = account;
		this.password = password;
		this.functionCode = functionCode;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}

	public Integer getFunctionCode() {
		return functionCode;
	}

	public void setFunctionCode(Integer functionCode) {
		this.functionCode = functionCode;
	}
	
	
}
